package com.better.mongodb.test.repository;

import com.better.common.mongo.model.BaseModel;
import com.better.common.mongo.repository.CommonRepository;
import com.better.mongodb.test.UserEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

/**
 * @author
 * @create 2017-09-11 16:17
 **/
@NoRepositoryBean
public interface UserRepository<T extends BaseModel,ID extends Serializable> extends CommonRepository<T,ID> {
    //spring data 原生提供根据属性查询方法，动态代理生成实现，如需自定义方法需单独添加接口，实现再继承
    //UserEntity findByUserName(String name);
}
